版本管理API
獲取版本信息
接口地址
GET /api/v1.0/invoke/open-ability/method/versions
請求參數
| 參數名 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
| Content-Type | String | Header | 是 | 內容類型,值爲application/json |
| Accept | String | Header | 是 | 接受類型,值爲application/json |
返回參數
| 參數名 | 類型 | 位置 | 說明 |
|---|---|---|---|
| Content-Type | String | Header | 內容類型,值爲application/json |
| success | Boolean | Body | 判斷請求是否成功 true:成功 false:失敗 |
| timestamp | Integer | Body | 時間戳 |
| result | Object<result> | Body | 返回結果 |
result說明
| 參數名 | 類型 | 位置 | 說明 |
|---|---|---|---|
| version_id | String | Body | 版本ID |
| version | String | Body | 平臺版本 |
| support | String | Body | 最低兼容 |
| remark | String | Body | 備註 |
請求示例
GET /api/v1.0/invoke/open-ability/method/versions
Content-Type: application/json
Accept: application/json
成功返回示例
狀態碼:200
Content-Type: application/json
{
"success": true,
"timestamp": 1540869200562,
"result": {
"version_id": "ve13a8919d43f40cbbd0524f1e2f57bd2",
"version": "1.0",
"support": "",
"remark": ""
}
}
失敗返回示例
見 接口失敗返回